<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>{{ title }}</title>
    {% load static %}
    <link rel="stylesheet" type="text/css" href="{% static "css/index.css" %}">
    <script type="text/javascript" src="{% static "js/index.js" %}"></script>
</head>
<body>
<form method="post" action="/stock/">
    {% csrf_token %}
    <div>请输入：</div>
    <div><input type="text" class="inputtext90width" name="stock_code" id="express" placeholder="股票编码" value="{{ stock_code }}"/></div>
    <div><input type="text" class="inputtext90width" name="querynum" id="querynum" placeholder="查询数量" value="{{ querynum }}"/></div>
    <div><input type="button" class="button_query" value="清空" onclick="clearStockContent()"/>
        <input type="submit" class="button_query" value="查询"/></div>
</form>
{% for stock in stock_list %}
	<div>{{ stock }}</div>
{% endfor %}


<hr/>
{#{% for item in data_list %}#}
{#    <div>{{ item }}</div>#}
{#{% endfor %}#}

<table border="1" width="100%" class='mytable'>
    <tr>
        {% for item in head_list %}
            <th>{{ item }}</th>
        {% endfor %}
    </tr>

    {% for item in data_list %}
        <tr>
            {% for initem in item %}
                <td>{{ initem }}</td>
            {% endfor %}
        </tr>
    {% endfor %}
</table>
</body>
</html>